/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘国水
 * Date: 2025-04-16
 * Time: 21:35
 */
public class test {
    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.addLast(11);
        mySingleList.addLast(22);
        mySingleList.addLast(33);
        mySingleList.addLast(44);
        mySingleList.addLast(55);
        mySingleList.display();

    }


    public static void main1(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.addFirst(11);
        mySingleList.addFirst(22);
        mySingleList.addFirst(33);
        mySingleList.addFirst(44);
        mySingleList.addFirst(55);
        mySingleList.display();
    }
}
